
import request from '@/router/axios';

/**
 * 分页查询
 * @param current
 * @param size
 * @param params
 */
export const getList = (current, size, params) => {
  return request({
    url: '/api/ywsp-management/Tlogistics/getWlkdPage',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}
/**
 * 查询详情
 * @param id
 */
export const getDetail = (id) => {
  return request({
    url: '/api/ywsp-management/Tlogistics/getWlkdDetail',
    method: 'get',
    params: {
      id
    }
  })
}
/**
 * 删除
 * @param ids
 */
export const remove = (ids) => {
  return request({
    url: '/api/ywsp-management/Tlogistics/remove',
    method: 'post',
    params: {
      ids,
    }
  })
}
/**
 * 新增
 * @param row
 */
export const add = (row) => {
  return request({
    url: '/api/ywsp-management/Tlogistics/save',
    method: 'post',
    data: row
  })
}
/**
 * 修改
 * @param row
 */
export const update = (row) => {
  return request({
    url: '/api/ywsp-management/Tlogistics/update',
    method: 'post',
    data: row
  })
}
export const updateIssend = (params) => {
  return request({
    url: '/api/ywsp-management/Tlogistics/updateIssend',
    method: 'get',
    params
  })
}
